package com.mybatis.plug.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ytj
 * @date 2021/12/7
 */
@Configuration
public class MapperConfig {
    /**
     * 将拦截器注入
     * */
    @Bean
    public MybatisInterceptor mybatisInterceptor(){
        MybatisInterceptor mybatisInterceptor=new MybatisInterceptor();
        return mybatisInterceptor;
    }
}
